<template>
  <div class="palace-tour">
    <el-carousel interval="4000" height="200px">
      <el-carousel-item v-for="item in images" :key="item">
        <img :src="item" alt="故宫图片" style="width: 100%; height: 100%;">
      </el-carousel-item>
    </el-carousel>

    <div class="info-section">
      <h1>故宫博物院</h1>
      <p><strong>开放时间：</strong>08:00 - 17:00</p>
      <el-button type="primary" @click="bookTickets">购买门票</el-button>
    </div>
  </div>
</template>

<script setup>

import {ref} from "vue";
import c1 from '@/img/c1.png'
import c2 from '@/img/c2.png'
import c3 from '@/img/c3.png'
import router from "@/router/index.js";
let  images=ref([
  c1,
  c2,
  c3,
]);

let bookTickets=()=>{
  router.push("/home/tickets")

}




</script>

<style scoped>
.palace-tour .info-section {
  padding: 20px;
  text-align: center;
}
</style>